define([ 'domain/SocialReference' ], function(SocialReference) {

	var availableGame = function(data) {
		var self = this;
		
		self.id = data.gameId;
		
		self.socialReference = new SocialReference(data.socialReference);
		
		self.equals = function(game) {
			return self.id == game.id;
		};
		
	};
	
	return availableGame;

});